package com.example.lewisgao.blankactivity.crazyandroid.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.example.lewisgao.blankactivity.R;
import com.example.lewisgao.blankactivity.crazyandroid.ui.DrawView;

/**
 * Created by gaoxy on 2015-08-17 0017.
 */
public class CustomView extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.custom_view);
        LinearLayout root = (LinearLayout) findViewById(R.id.root);
        final DrawView drawView = new DrawView(this);
        drawView.setMinimumWidth(300);
        drawView.setMinimumHeight(500);
        root.addView(drawView);
    }
}
